#ifndef _CONDITION_HPP
#define _CONDITION_HPP
#include "MutexLock.hpp"
#include "Nocopyable.hpp"
#include <pthread.h>

class Condition:public Nocopyable
{
public:
    Condition();
    ~Condition();

    void wait(MutexLock & _mutex);
    void notify_one();
    void notify_all();
private:
    pthread_cond_t _cond;
    

};

#endif

